import axios from '@/libs/request/axios'
// 获取产品模块原子信息
export const getProductTemplateDetails = (params) => {
    return axios.request({
        url: `/product/productTemplateAtom/getProductTemplateDetails`,
        params: params,
        method: 'get'
    })
}
// 上移模板
export const upTemplate = (params) => {
    return axios.request({
        url: `/product/productTemplateAtom/upTemplate`,
        params: params,
        method: 'post'
    })
}
// 上移模板
export const downTemplate = (params) => {
    return axios.request({
        url: `/product/productTemplateAtom/downTemplate`,
        params: params,
        method: 'post'
    })
}
// 删除产品模板原子
export const delById = (id, params) => {
    return axios.request({
        url:`/product/productTemplateAtom/delById/${id}`,
        params:params,
        method: 'delete'
    })
}
// 修改产品模板原子
export const editTemPlateAtom = (params) => {
    return axios.request({
        url: '/product/productTemplateAtom/editTemPlateAtom',
        data:params,
        method: 'post'
    })
}
// 保存产品模板原子
export const saveTemplateAtom = (params) => {
    return axios.request({
        url: `/product/productTemplateAtom/saveTemplateAtom`,
        params: params,
        method: 'post'
    })
}
// 编辑产品模块原子设置必填信息
export const isMust = (params) => {
    return axios.request({
        url: `/product/productTemplateAtom/isMust`,
        params: params,
        method: 'post'
    })
}
// 编辑产品模块原子设置不必填信息
export const   isNotMust = (params) => {
    return axios.request({
        url: `/product/productTemplateAtom/isNotMust`,
        params: params,
        method: 'post'
    })
}

// 删除产品模块原子信息
export const removeAll = (params) => {
    return axios.request({
        url: `/product/productTemplateAtom/removeAll`,
        params: params,
        method: 'post'
    })
}

// 移动产品模块原子信息
export const moveTemplateAll = (params) => {
    return axios.request({
        url: `/product/productTemplateAtom/moveTemplateAll`,
        params: params,
        method: 'post'
    })
}

